function request(data, backcall) {
    $.get('/index.php?s=/store/wlyunshu.api/baseapi', data, function(resalt) {
        backcall && backcall(resalt);
    });
}
function saverequest(data, backcall) {
    $.post('/index.php?s=/store/wlyunshu.api/baseseveapi', data, function(resalt) {
        backcall && backcall(resalt);
    });
}

//获取长度
function getchangdu(data,item) {
    let arr = data.split('*');
    let value = arr[0];
    
    return arr[0];
}
//时间获取
function getNowTime(y, m, d) {
    var now = new Date();
    var year = now.getFullYear(); //得到年份
    var month = now.getMonth(); //得到月份
    var date = now.getDate(); //得到日期
    month = month + 1;
    month = month.toString().padStart(2, "0");
    date = date.toString().padStart(2, "0");

    var defaultDate = '';
    if (y) {
        defaultDate = `${year}`;
    }
    if (m) {
        defaultDate += `-${month}`;
    }
    if (d) {
        defaultDate += `-${date}`;
    }
    return defaultDate;
}
function clone(obj) {
    return JSON.parse(JSON.stringify(obj));;
}
